﻿using System.Web;
using System.Text;
using System.IO;
using System.Net;
using System;
using System.Collections.Generic;

namespace MM.LibraryAPI.ZFB
{
    /// <summary>
    /// 类名：Config
    /// 功能：支付宝配置公共类
    /// 详细：该类是配置所有请求参数，支付宝网关、接口，商户的基本参数等
    /// 版本：1.0
    /// 日期：2011-09-15
    /// 说明：
    /// 以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
    /// 该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
    /// </summary>
    public class Config
    {
        static Config()
        {
            Partner = "2088011017087670";
            Seller = "zhifubao@yhstar.cn";
            Subject = "";
            body = "";
            privateKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJ8xVlPaYtrhnBglOmwQY/35O6LfBaT3gfYbLculUw2gte+szGyp9W0CgPVoq1w60ijdUcaVJBGC1ih5iDyNR0Y47tRJUn/uVqSlo9Zzq4Rf8LQCST1objV7pLBmO0yCYv2dSQqEpkyzDU5VyvDUoKKp8RX2TUIPDXqPVnjo74atAgMBAAECgYB4iC2Z3c9ddNbwPTfH3H0pLg0mW4B1kGVZRujcuTdyKQ24A/jgCatmty+XIIImme7HvBMPrZqam5q1GJe7aSjd46F3RnI+ClRT2fq98ynoYstVSWu+XHl+6LXiUZfraP6aZuMK+2507WivlWM43EH/TGZy435b5CP/eWJSOLVFjQJBANBP1f8mU+WhwIYr+BfLYN8li1Ezqs9wLo7eJNuw6xl9lYDV6jOq+iM2xw0FB7i6CAjKlvw89XDWII7aWst3KFMCQQDDotz2XYglmyQdaW8L56xdivleV6V9OLhgXx7OLiv6MnYHIpkyaBcQBezZ6PnKgvACudFk0dyfH/Jafd0LDLT/AkBf4J8KNMXgpzZJiutBaGZJzqn00ecIWwXS1AP66c8LiHXLOqn05fkDRC8RmwMWzujrwvMDXbtKGAQcO/wWMd3pAkEAlR84dKZ418l47t5mIdn3HdqIGGyQnXG1wOfgkGLLbMw4AVpTEgQbyD/r+XJHrSC/mCRRwxrgo35zepzD9984uwJBAJbxyQSrKxgUhvEtxFJ+3Gg/JowfCr18CmwhRxKzK9lHPNLSfm9F+HcHoY4cHQhan1qiPf/KjTIVgKVvOkISrAw=";
            notify_url = "http://www.it-leo.com:2001/ZFB/Notify.aspx";
            Input_charset_UTF8 = "utf-8";//必须为utf-8格式
            Alipaypublick = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCTSUGtum5HsunKw20bQUg7mQDLrIsdBzg3tHK9GsER6w6cHENqR8Vi9C3aFUSNePnbEfwYYyhbWxWgTV0tN7kYzlxOOcopMAIeMWLn7v1WkpKnGxJFoXspLm4luSPRwW7l6UgN6/dwSZiEvFtbtS3Q7UFTGVdvN8sgoB8IVJH6fwIDAQAB";
        }

        #region 属性

        /// <summary>
        /// 合作商户ID
        /// </summary>
        public static string Partner
        { get; set; }
        /// <summary>
        /// 卖家帐号
        /// </summary>
        public static string Seller
        { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public static string Subject
        { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        public static string body
        { get; set; }
        /// <summary>
        /// 商户私钥
        /// </summary>
        public static string privateKey
        { get; set; }
        /// <summary>
        /// 支付宝公钥
        /// </summary>
        public static string Alipaypublick
        { get; set; }
        /// <summary>
        /// 编码格式UTF-8
        /// </summary>
        public static string Input_charset_UTF8
        { get; set; }
        /// <summary>
        /// Notify异步通知URL
        /// </summary>
        public static string notify_url
        { get; set; }
        #endregion
    }
}